//
//  HWFileMannager.m
//  HappyWeekend
//
//  Created by lanou on 16/1/14.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWFileMannager.h"

@implementation HWFileMannager

+ (instancetype)shareManager{
    static HWFileMannager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[HWFileMannager alloc] init];
    });
    return manager;
}

- (void)isLogin:(BOOL)isLogin{
    [[NSUserDefaults standardUserDefaults] setBool:isLogin forKey:@"isLogin"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

- (BOOL)isLogin{
    return [[NSUserDefaults standardUserDefaults] boolForKey:@"isLogin"];
}

@end
